package xyz.gzdxc.common.mysql.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import java.util.Date;

@Table("xh_cm_user")
public class UserEntity {

    @Id
    private Long id;

    @Column("account")
    private String account;

    @Column("user_name")
    private String userName;

    @Column("password")
    private String password;

    @Column("phone")
    private String phone;

    @Column("email")
    private String email;

    @Column("sex")
    private String sex;

    @Column("user_lock")
    private String userLock;

    @Column("create_by")
    private String createBy;

    @Column("create_dt")
    private Date createDt;

    @Column("update_by")
    private String updateBy;

    @Column("update_dt")
    private Date updateDt;

    @Column("del_status")
    private String delStatus;

    @Column("error_num")
    private Integer errorNum;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getUserLock() {
        return userLock;
    }

    public void setUserLock(String userLock) {
        this.userLock = userLock;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDt() {
        return createDt;
    }

    public void setCreateDt(Date createDt) {
        this.createDt = createDt;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDt() {
        return updateDt;
    }

    public void setUpdateDt(Date updateDt) {
        this.updateDt = updateDt;
    }

    public String getDelStatus() {
        return delStatus;
    }

    public void setDelStatus(String delStatus) {
        this.delStatus = delStatus;
    }

    public Integer getErrorNum() {
        return errorNum;
    }

    public void setErrorNum(Integer errorNum) {
        this.errorNum = errorNum;
    }

    @Override
    public String toString() {
        return "UserEntity{" +
                "id=" + id +
                ", account='" + account + '\'' +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", sex='" + sex + '\'' +
                ", userLock='" + userLock + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createDt=" + createDt +
                ", updateBy='" + updateBy + '\'' +
                ", updateDt=" + updateDt +
                ", delStatus='" + delStatus + '\'' +
                ", errorNum=" + errorNum +
                '}';
    }
}
